package com.shoulei.designpattern.flyweightPattern;

/**
 * @ClassName:Circle
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 15:16
 * @Verson:
 */
public class Circle implements Shape {
    private int x;
    private int y;
    private int radius;
    private String color;

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Circle(String color) {
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("Circle:[color:"+color+",radius:"+radius+",x:"+x+",y:"+y+"]");
    }
}
